﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SharedLibraries;
using System.Data;
using SharedLibraries.Constants;

namespace ThangNM.UserControl
{
    public partial class OtherUC : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void BindData(DataTable dt)
        {
            dt.Columns.Add(new DataColumn("LinkTopicHtml", Type.GetType("System.String")));
            foreach (DataRow dr in dt.Rows)
            {
                dr["LinkTopicHtml"] = System.Configuration.ConfigurationManager.AppSettings["HOMEPAGE"] + FileNameByFunction.Bai_Viet_ + RewriteUrl.ConvertToUnSign(dr["sTitle"].ToString()) + "." + dr["PK_iTopicID"].ToString() + FileNameByFunction.HTML;
            }
            rptOther.DataSource = dt;
            rptOther.DataBind();
            rptOther.Visible = true;
            lblOther.Visible = true;

        }
    }
}